
package com.bjpower.convent;

import com.bjpower.domain.UserPayConfig;
import com.bjpower.models.vo.UserPayConfigVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import java.util.List;

@Mapper(componentModel = "spring", uses = {MapperHelder.class})
public interface UserPayConfigVoConvent {

    @Mappings({
            @Mapping(source = "editTime",target = "editTime",dateFormat = "yyyy-MM-dd HH:mm:ss"),
            @Mapping(source = "autoSett",target = "autoSett",qualifiedByName = "translateAutoSett")
    })
    UserPayConfigVo mapUserPayConfigVo(UserPayConfig userPayConfig);


    List<UserPayConfigVo> convertListUserPayConfigVo(List<UserPayConfig> userPayConfigs);
}

